|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.hierarchy.HierarchyNode
j3deditor.bin.hierarchy.J3DeObject
j3deditor.bin.hierarchy.J3DeTextureAttributes
public class J3DeTextureAttributes
Contains and manages an instance of
javax.media.j3d.TextureAttributes.
TextureAttributes| Constructor Summary | |
|---|---|
J3DeTextureAttributes(javax.media.j3d.Appearance appearance)
Creates an instance of J3DeTextureAttributes
with the TextureAttributes object from the
given Appearance object. |
|
| Method Summary | |
|---|---|
int |
getCombineColorFunction()
|
java.lang.String[] |
getCombineColorFunctionItems()
Returns combine color function names. |
int |
getCombineColorFunctionTarget()
Returns current combine color function target. |
java.lang.String[] |
getCombineColorFunctionTargetItems()
Returns combine color function target names. |
int |
getCombineColorSource()
|
java.lang.String[] |
getCombineColorSourceItems()
Returns an array of combine color source names. |
int |
getCombineColorSourceTarget()
Returns the current combine color source target. |
java.lang.String[] |
getCombineColorSourceTargetItems()
Returns an array of combine color source target names. |
int |
getCombineMode()
|
java.lang.String[] |
getCombineModeItems()
Returns an array of combine mode names. |
int |
getCombineModeTarget()
Returns the current combine mode target. |
java.lang.String[] |
getCombineModeTargetItems()
Returns an array of combine mode target names. |
int |
getCombineScaleFactor()
|
int |
getCombineScaleFactorMode()
Returns the current combine scale factor mode. |
java.lang.String[] |
getCombineScaleFactorModeItems()
Returns an array of combine scale factor mode names. |
int |
getPerspectiveCorrection()
|
java.lang.String[] |
getPerspectiveCorrectionItems()
Returns an array of perspective correction mode names. |
int |
getTextureMode()
|
java.lang.String[] |
getTextureModeItems()
Returns an array of texture mode names. |
void |
rotate(float x,
float y,
float z)
Manipulates the rotation of texture image. |
void |
rotateZ(float angle,
boolean isLocal)
Manipulates the rotation of texture image. |
void |
rotateX(float angle,
boolean isLocal)
Manipulates the rotation of texture image. |
void |
rotateY(float angle,
boolean isLocal)
Manipulates the rotation of texture image. |
void |
scale(float x,
float y,
float z)
Manipulates the scale of texture image. |
void |
scaleZ(float z,
boolean isLocal)
Manipulates the scale of texture image. |
void |
scaleX(float x,
boolean isLocal)
Manipulates the scale of texture image. |
void |
scaleY(float y,
boolean isLocal)
Manipulates the scale of texture image. |
void |
setCombineColorFunction(int function)
|
void |
setCombineColorFunctionTarget(int target)
Sets the current combine color function target. |
void |
setCombineColorSource(int src)
|
void |
setCombineColorSourceTarget(int target)
Sets the current combine color source target. |
void |
setCombineMode(int mode)
|
void |
setCombineModeTarget(int target)
Sets the current combine mode target. |
void |
setCombineScaleFactor(int scale)
|
void |
setCombineScaleFactorMode(int mode)
Sets the current combine scale factor mode. |
void |
setPerspectiveCorrection(int mode)
|
void |
setTextureMode(int mode)
|
void |
translate(float x,
float y,
float z)
Manipulates the position of texture image. |
void |
translateZ(float z,
boolean isLocal)
Manipulates the position of texture image. |
void |
translateX(float x,
boolean isLocal)
Manipulates the position of texture image. |
void |
translateY(float y,
boolean isLocal)
Manipulates the position of texture image. |
| Methods inherited from class j3deditor.bin.hierarchy.J3DeObject |
|---|
clone, delete, get3DObject, getObject, getRotationZ, getRotationX, getRotationY, getScaleZ, getScaleX, getScaleY, getTranslationZ, getTranslationX, getTranslationY, initObject, scaleAll, setNode, setObject |
| Methods inherited from class j3deditor.bin.hierarchy.HierarchyNode |
|---|
equals, getChild, getIndex, getIndexOfChild, getNumberOfChildren, getParent, getParent, getType, hasNamedChild, removeChild, setName, setParent, toString, updateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public J3DeTextureAttributes(javax.media.j3d.Appearance appearance)
J3DeTextureAttributes
with the TextureAttributes object from the
given Appearance object.
appearance - an instance of Appearance which
texture attributes component is not null| Method Detail |
|---|
public int getCombineScaleFactor()
TextureAttributes.getCombineRgbScale(),
TextureAttributes.getCombineAlphaScale()public void setCombineScaleFactor(int scale)
TextureAttributes.setCombineRgbScale(int s),
TextureAttributes.setCombineAlphaScale(int s)public java.lang.String[] getCombineScaleFactorModeItems()
public int getCombineScaleFactorMode()
public void setCombineScaleFactorMode(int mode)
mode - new modepublic java.lang.String[] getTextureModeItems()
public int getTextureMode()
TextureAttributes.getTextureMode()public void setTextureMode(int mode)
TextureAttributes.setTextureMode(int m)public java.lang.String[] getCombineModeItems()
public int getCombineMode()
TextureAttributes.getCombineRgbMode(),
TextureAttributes.getCombineAlphaMode()public void setCombineMode(int mode)
TextureAttributes.setCombineRgbMode(int m),
TextureAttributes.setCombineAlphaMode(int m)public java.lang.String[] getCombineModeTargetItems()
public int getCombineModeTarget()
public void setCombineModeTarget(int target)
target - new targetpublic java.lang.String[] getCombineColorSourceItems()
public int getCombineColorSource()
TextureAttributes.getCombineRgbSource(int s),
TextureAttributes.getCombineAlphaSource(int s)public void setCombineColorSource(int src)
TextureAttributes.setCombineRgbSource(int t, int s),
TextureAttributes.setCombineAlphaSource(int t, int s)public java.lang.String[] getCombineColorSourceTargetItems()
public int getCombineColorSourceTarget()
public void setCombineColorSourceTarget(int target)
target - new targetpublic java.lang.String[] getCombineColorFunctionItems()
public int getCombineColorFunction()
TextureAttributes.getCombineRgbFunction(int f),
TextureAttributes.getCombineAlphaFunction(int f)public void setCombineColorFunction(int function)
TextureAttributes.setCombineRgbFunction(int t, int f),
TextureAttributes.setCombineAlphaFunction(int t, int f)public java.lang.String[] getCombineColorFunctionTargetItems()
public int getCombineColorFunctionTarget()
public void setCombineColorFunctionTarget(int target)
target - new target
public void translateX(float x,
boolean isLocal)
translateX in class J3DeObjectx - change of position on X-axisisLocal - if true transformed in local coordinate system, otherwise globalJ3DeObject.translateX(float x, boolean isLocal)
public void translateY(float y,
boolean isLocal)
translateY in class J3DeObjecty - change of position on Y-axisisLocal - if true transformed in local coordinate system, otherwise globalJ3DeObject.translateY(float y, boolean isLocal)
public void translateZ(float z,
boolean isLocal)
translateZ in class J3DeObjectz - change of position on Z-axisisLocal - if true transformed in local coordinate system, otherwise globalJ3DeObject.translateZ(float z, boolean isLocal)
public void translate(float x,
float y,
float z)
translate in class J3DeObjectx - change of position on X-axisy - change of position on Y-axisz - change of position on Z-axisJ3DeObject.translate(float x, float y, float z)
public void scaleX(float x,
boolean isLocal)
scaleX in class J3DeObjectx - change of scale on X-axisisLocal - if true transformed in local coordinate system, otherwise globalJ3DeObject.scaleX(float x, boolean isLocal)
public void scaleY(float y,
boolean isLocal)
scaleY in class J3DeObjecty - change of scale on Y-axisisLocal - if true transformed in local coordinate system, otherwise globalJ3DeObject.scaleY(float y, boolean isLocal)
public void scaleZ(float z,
boolean isLocal)
scaleZ in class J3DeObjectz - change of scale on Z-axisisLocal - if true transformed in local coordinate system, otherwise globalJ3DeObject.scaleZ(float z, boolean isLocal)
public void scale(float x,
float y,
float z)
scale in class J3DeObjectx - change of scale on X-axisy - change of scale on Y-axisz - change of scale on Z-axisJ3DeObject.scale(float x, float y, float z)
public void rotateX(float angle,
boolean isLocal)
rotateX in class J3DeObjectangle - angle of rotation around X-axisisLocal - if true transformed in local coordinate system, otherwise globalJ3DeObject.rotateX(float angle, boolean isLocal)
public void rotateY(float angle,
boolean isLocal)
rotateY in class J3DeObjectangle - angle of rotation around Y-axisisLocal - if true transformed in local coordinate system, otherwise globalJ3DeObject.rotateY(float angle, boolean isLocal)
public void rotateZ(float angle,
boolean isLocal)
rotateZ in class J3DeObjectangle - angle of rotation around Z-axisisLocal - if true transformed in local coordinate system, otherwise globalJ3DeObject.rotateZ(float angle, boolean isLocal)
public void rotate(float x,
float y,
float z)
rotate in class J3DeObjectx - angle of rotation around X-axisy - angle of rotation around Y-axisz - angle of rotation around Z-axisJ3DeObject.rotate(float x, float y, float z)public java.lang.String[] getPerspectiveCorrectionItems()
public int getPerspectiveCorrection()
TextureAttributes.getPerspectiveCorrectionMode()public void setPerspectiveCorrection(int mode)
TextureAttributes.setPerspectiveCorrectionMode(int m)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||